import static org.junit.Assert.*;
import junit.framework.Assert;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;


public class LinkedListTest {

	@Test
	public void testInsert() {
		LinkedList list = new LinkedList();
		list.insert(5);
		Assert.assertNotNull(list);
	}
	
	@Test
	public void testDelete() {
		LinkedList list = new LinkedList();
		list.insert(5);
		list.insert(11);
		Assert.assertEquals(true, list.isPresent(5));
		list.delete(5);
		Assert.assertEquals(false, list.isPresent(5));
	}

}
